//package com.csw.springbootquartz.task.simpleschedule;
//
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.concurrent.Executors;
//import java.util.concurrent.ScheduledExecutorService;
//import java.util.concurrent.TimeUnit;
//
///**
// * 定时线程池  @Component+@PostConstruct
// */
//@Component
///*
//https://cron.qqe2.com/
//*要是6位的
//*/
//public class ThreadPoolSchedule {
//
//    @PostConstruct
//    public static void init() {
//        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1);
//
//        scheduledExecutorService.scheduleAtFixedRate(() -> {
//            System.out.println("ScheduledExecutorService  定时任务线程池" + new SimpleDateFormat("yy-MM-dd HH:mm:ss").format(new Date()));
//        }, 1000, 1000, TimeUnit.MILLISECONDS);
//    }
//}
